﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("欢迎来到宠物店，请选择您要寄养的动物：1、猫 2、狮子 3、老鹰 4、燕子");
            int key = int.Parse(Console.ReadLine());
            Animal a;
            switch (key)
            {
                case 1:
                    a = new Cat();
                    break;
                case 2:
                    a = new Lion();
                    break;
                case 3:
                    a = new Eagle();
                    break;
                case 4:
                    a = new Lion();
                    break;
                default:
                    Console.WriteLine("想清楚再选！");
                    a = new Swallow();
                    break;
            }
            Petstore ps = new Petstore();
            ps.ConsignAnimal(a);

        }
    }
    }
}
